package com.fhz.a2102shopjava.api;

import androidx.lifecycle.LiveData;

import com.fhz.a2102shopjava.callback.ApiResponse;
import com.fhz.a2102shopjava.ui.login.data.model.LoggedInUser;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * 时间:2023/8/17
 *
 * @author Mr.Feng
 * 简述: TODO
 */

public interface OkHttpCallAdapterFengServiceApi {

    @POST("user/login")
    @FormUrlEncoded
    Call<ApiResponse<LoggedInUser>> login(@Field("nickname") String nickname, @Field("password") String password);

}
